package com.huicoo.forestmanager.ui.patrol.fireAlarm.model;

import com.huicoo.forestmanager.network.HttpService;
import com.huicoo.forestmanager.network.bean.alarm.AlarmBean;
import com.huicoo.forestmanager.network.bean.patrol.AttachmentEntity;
import com.huicoo.forestmanager.network.bean.patrol.UploadFileBean;
import com.huicoo.forestmanager.ui.patrol.fireAlarm.contract.AlarmContract;

import java.util.HashMap;

import retrofit2.Call;

public class AlarmModel implements AlarmContract.Model {

    @Override
    public Call<UploadFileBean> uploadFile(HashMap<String, String> params, AttachmentEntity attachment) {
        return HttpService.getInstance().uploadFile(params, attachment);
    }

    @Override
    public Call<AlarmBean> alarm(HashMap<String, String> params) {
        return HttpService.getInstance().alarm(params);
    }
}
